package com.luo.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Results {

    private Integer code;
    private String msg;
    private Object data;


    public static Results success(){
        return new Results(1,"success",null);
    }
    public static Results success(Object data){
        return new Results(1,"success",data);
    }

    public static Results error(String msg){
        return new Results(0,msg,null);
    }

}
